import { Button } from "@nextui-org/react";

export default function Consult({
    className,
    title="-",
    ButtonText="立即咨询",
    onConsult=()=>{}
}){
    function handleConsult(){
        // 处理立即咨询逻辑
        onConsult();
    }
    return (
        <div className={"consult_container py-[26px] background-100 dark:bg-default flex flex-col  justify-center items-center "+className}>
            <div className="consult_title mb-[10px] flex justify-center items-center text-[32px] font-normal">{title}</div>
            <div className="consult_button flex justify-center items-center">
                <Button color="primary" radius="full" className="text-[16px] font-bold px-6 py-2"  onClick={
                    handleConsult
                }>{ButtonText}</Button>    
            </div>
        </div>
    )
}